<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">应用id</label>
            <div class="layui-input-block">
                <select name="miniapp_id" lay-verify="required">
                    <option value=''></option>
                    {foreach $getMiniappList as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.miniapp_id"}selected=""{/in}>{$v}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <label class="layui-form-label">租户id</label>
            <div class="layui-input-block">
                <input type="text" name="member_id" class="layui-input" lay-verify="required" placeholder="请输入租户id" value="{$row.member_id|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">租户应用id</label>
            <div class="layui-input-block">
                <select name="member_miniapp_id" lay-verify="required">
                    <option value=''></option>
                    {foreach $getMemberMiniappList as $k=>$v}
                    <option value='{$k}' {in name="k" value="$row.member_miniapp_id"}selected=""{/in}>{$v.appname}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">版本号</label>
            <div class="layui-input-block">
                <input type="text" name="version" class="layui-input" lay-verify="required" placeholder="请输入版本号" value="{$row.version|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">模板id</label>
            <div class="layui-input-block">
                <input type="text" name="template_id" class="layui-input" lay-verify="required" placeholder="请输入模板id" value="{$row.template_id|default=''}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">模板图</label>
            <div class="layui-input-block layuimini-upload">
                <input name="images" class="layui-input layui-col-xs6"   placeholder="请上传模板图" value="{$row.images|default=''}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="images" data-upload-number="more" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image" data-upload-sign=""><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_images" data-upload-select="images" data-upload-number="more" data-upload-mimetype="image/*" data-upload-sign=""><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" name="desc" class="layui-input"  placeholder="请输入描述" value="{$row.desc|default=''}">
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>